package tech.aistar.entity;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by Administrator on 2019/10/7.
 */
public class Com implements Serializable{
        private Integer comId;
        private Integer floor;
        private Integer postId;
        private Integer userId;
        private Integer toUserId;
        private String content;
        private Date ctime;
        private Integer pointNum;
        private Integer flag;
        //用户对象
        private UserInfo userInfo;
        //被回复的用户对象
        private UserInfo toUserInfo;

    public Com() {
    }

    public Com(Integer comId, Integer floor, Integer postId, Integer userId, Integer toUserId, String content, Date ctime, Integer pointNum, Integer flag, UserInfo userInfo, UserInfo toUserInfo) {
        this.comId = comId;
        this.floor = floor;
        this.postId = postId;
        this.userId = userId;
        this.toUserId = toUserId;
        this.content = content;
        this.ctime = ctime;
        this.pointNum = pointNum;
        this.flag = flag;
        this.userInfo = userInfo;
        this.toUserInfo = toUserInfo;
    }

    public Integer getComId() {
        return comId;
    }

    public void setComId(Integer comId) {
        this.comId = comId;
    }

    public Integer getFloor() {
        return floor;
    }

    public void setFloor(Integer floor) {
        this.floor = floor;
    }

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getToUserId() {
        return toUserId;
    }

    public void setToUserId(Integer toUserId) {
        this.toUserId = toUserId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCtime() {
        return ctime;
    }

    public void setCtime(Date ctime) {
        this.ctime = ctime;
    }

    public Integer getPointNum() {
        return pointNum;
    }

    public void setPointNum(Integer pointNum) {
        this.pointNum = pointNum;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    public UserInfo getUserInfo() {
        return userInfo;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public UserInfo getToUserInfo() {
        return toUserInfo;
    }

    public void setToUserInfo(UserInfo toUserInfo) {
        this.toUserInfo = toUserInfo;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Com{");
        sb.append("comId=").append(comId);
        sb.append(", floor=").append(floor);
        sb.append(", postId=").append(postId);
        sb.append(", userId=").append(userId);
        sb.append(", toUserId=").append(toUserId);
        sb.append(", content='").append(content).append('\'');
        sb.append(", ctime=").append(ctime);
        sb.append(", pointNum=").append(pointNum);
        sb.append(", flag=").append(flag);
        sb.append(", userInfo=").append(userInfo);
        sb.append(", toUserInfo=").append(toUserInfo);
        sb.append('}');
        return sb.toString();
    }
}
